package com.pattern.proxy.staticproxy;

/**
 * @author 冯志立
 * @create 2019-11-05 11:11
 */
public class TeacherDaoProxy implements ITeacherDao {
    private ITeacherDao teacherDao;

    public TeacherDaoProxy(ITeacherDao teacherDao) {
        this.teacherDao = teacherDao;
    }

    @Override
    public void teach() {
        teacherDao.teach();
        System.out.println("代理对象调用");
    }
}
